package Job.shopping.info;

public class Commodity {
    private int number;
    private String name;

    public int getNumber() {
        return number;
    }
    public void setNumber(int number) {
        this.number = number;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public Commodity(int number, String name) {
        this.setName(name);
        this.setNumber(number);
    }

    public Commodity() {
    }

    public String DY(){
        String info = String.format("类别编号:%d,类别名称:%s",this.getNumber(),this.getName());
        return info;
    }
}
